package com.mywork.mvpkodeingithub.di

import com.mywork.mvpkodeingithub.presenter.MainPresenter
import com.mywork.mvpkodeingithub.repository.GithubRepository
import org.kodein.di.Kodein
import org.kodein.di.generic.bind
import org.kodein.di.generic.provider
import org.kodein.di.generic.singleton

val appKodeinModule = Kodein.Module("App Module") {
    bind<GithubRepository>() with singleton { GithubRepository(kodein) }

    bind<MainPresenter>() with provider { MainPresenter(kodein) }
}